#include "stdafx.h"
#include "TileComponent.h"

s64	TileComponent::m_type = -1;
s64	TileComponent::m_index = -1;

TileComponent::TileComponent(const Vector2D<u32>& index, const Vector2D<u32>& dimension) : IComponent("TileComponent", m_type, m_index),
                                                                                           m_worldIndex(index), 
                                                                                           m_dimension(dimension)
{
    m_worldTileSpan = Vector2D<u32>(dimension.GetX() / cTileWidth, dimension.GetY() / cTileHeight);
}

TileComponent::~TileComponent()
{
}
